import threading

local_name = threading.local()
def process_name():
    print('thread %s >>> %s' % (threading.current_thread().name, local_name.student))

def process_thread(name):
    local_name.student = name
    process_name()

thread1 = threading.Thread(target=process_thread, name='THREAD-1', args=('zhangsan',))
thread2 = threading.Thread(target=process_thread, name='THREAD-2', args=('lisi',))
thread1.start()
thread2.start()
thread1.join()
thread2.join()